/**
 * @Title: BalanceFetchStatus
 * @Package cn.com.yiqi.wsc.service.balance.enumeration
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-胥钰淋
 * @date 2017/3/3 13:58
 * @version V1.0
 */
package cn.com.yiqi.wsc.service.balance.enumeration;

/**
 * @author 会员系统组-胥钰淋
 * @ClassName: BalanceFetchStatus
 * @Description: TODO
 * @date 2017/3/3 13:58
 */
public enum BalanceFetchStatus {
    /**
     * 待审核
     */
    pending(0),
    /**
     * 提现成功
     */
    pass(1),
    /**
     * 不通过
     */
    not_pass(-1),
    /**
     * 提现失败
     */
    submited(2),
    completed(3);//完成

    private int value;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    private BalanceFetchStatus(int value) {
        this.value = value;
    }

    public static BalanceFetchStatus getByValue(int value) {
        for (BalanceFetchStatus status :
                BalanceFetchStatus.values()) {
            if (status.value == value) {
                return status;
            }
        }
        return null;
    }
}
